package com.wzu.service;

import com.wzu.dao.BookDao;
import com.wzu.dao.BookDaoImpl;
import com.wzu.pojo.Book;

import java.util.List;

public class BookServiceImpl implements BookService {
    private BookDao bookDao = new BookDaoImpl();

    @Override
    public List<Book> getAllBooks() {
        return bookDao.getAllBooks();
    }

    @Override
    public boolean addBook(Book book) {
        return bookDao.addBook(book);
    }

}